package com.pactera.asmp.server.job.dispatch.impl;

import com.pactera.asmp.server.common.constants.TaskEventType;
import com.pactera.asmp.server.common.logprint.utils.StringUtils;
import com.pactera.asmp.server.job.dispatch.ITaskEvent;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 任务事件
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class TaskEvent extends BaseEvent implements ITaskEvent {

    private TaskEventType eventType;

    private Integer taskId;


    @Override
    public Enum getType() {
        return eventType;
    }


    @Override
    public Integer getTaskId() {
        return taskId;
    }

    public void setEventType(TaskEventType eventType) {
        this.eventType = eventType;
    }

//    public void setTaskId(String taskId) {
//        this.taskId = taskId;
//    }
}
